package com.jumper.study.admin.dto.resp;

import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.List;

public class MenuResp {
    private Integer id;

    private String title;

    private String uri;

    private Integer parentId;

    private String desc;

    private List<Integer> apis;

    private LocalDateTime createdAt;

    public MenuResp() {
    }

    public MenuResp(Integer id, String title, String uri, Integer parentId, String desc, List<Integer> apis,
        LocalDateTime createdAt) {
        this.id = id;
        this.title = title;
        this.uri = uri;
        this.parentId = parentId;
        this.desc = desc;
        this.apis = apis;
        this.createdAt = createdAt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Long getCreatedAt() {
        return createdAt.toEpochSecond(ZoneOffset.UTC);
    }

    public void setCreatedAt(LocalDateTime d) {
        createdAt = d;
    }

    public List<Integer> getApis() {
        return apis;
    }

    public void setApis(List<Integer> apis) {
        this.apis = apis;
    }
    
}
